import { GranularPermission } from '@/components/assist'
import { Button } from 'antd'

export default function HomePage() {
    return (
        <>
            <div className="text-color">home.page</div>
            <div>
                <GranularPermission authId="grain|add|menu-list">
                    <div>测试节点权限（有权限显示）</div>
                </GranularPermission>
                <GranularPermission type="button" authId="grain|add|menu-list1">
                    <Button type="primary">测试按钮权限（无权限）</Button>
                </GranularPermission>
            </div>
        </>
    )
}
